
import request from '@/utils/request'

/**
 * 分站列表
 * @param pram
 */
export function getCityList(pram) {
  return request({
    url: '/city/list',
    method: 'GET',
    params: pram
  })
}
/**
 * 分站状态更新
 * @param pram
 */
export function updateStatus(data) {
    return request({
      url: '/city/updateStatus',
      method: 'PUT',
      params: data
    })
  }
/**
 * 分站新增
 * @param pram
 */
export function postCity(data) {
  return request({
    url: '/city/add',
    method: 'POST',
    data: data
  })
}
/**
 * 分站编辑
 * @param pram
 */
export function putCity(data) {
  return request({
    url: '/city/update',
    method: 'PUT',
    data: data
  })
}
/**
 * 分站详情
 * @param pram
 */
export function getCityDetail(pram) {
  return request({
    url: `/city/detail/${pram.id}`,
    method: 'GET'
  })
}
/**
 * 分站密码重置
 * @param pram
 */
export function putRestPassword(data) {
  return request({
    url: '/city/restPassword',
    method: 'PUT',
    data: data
  })
}